/**
 * Project Looking Glass
 *
 * $RCSfile: AxisEvent.java,v $
 *
 * Copyright (c) 2004-2007, Sun Microsystems, Inc., All Rights Reserved
 *
 * Redistributions in source code form must reproduce the above
 * copyright and this condition.
 *
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 *
 * $Revision: 1.3 $
 * $Date: 2007/05/04 23:11:40 $
 * $State: Exp $
 */
package lionel.input;

/**
 * The event generated when an axis is moved...
 *
 * @author Krishna Gadepalli
 */
public class AxisEvent extends JInputEvent {

    protected AxisEvent(JInputDevice device, JInputComponent component, float value) {
	super(device, component, value);
    }

    public boolean isRelative() {
	return component.isRelative();
    }

    public boolean isAbsolute() {
	return !component.isRelative();
    }

    public JInputComponent.POV getPOVValue() {
	return component.getPOVValue(value);
    }
}
